﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using TrackerEnabledDbContext.Common.Models;

namespace DevWeb.Biztalk.DeploymentSettings.Data.CodeFirst.Context
{
    public interface IDatabaseContext
    {

        string UserName { get; set; }

        DbSet<Integration> Integrations { get; set; }
        DbSet<IntegrationVersion> IntegrationVersions { get; set; }
        DbSet<TargetEnvironment> TargetEnvironments { get; set; }

         DbSet<IntegrationVersionParameter> IntegrationVersionParameters { get; set; }
         DbSet<IntegrationVersionParameterValue> IntegrationVersionParameterValues { get; set; }
         DbSet<DefaultSettingParameter> DefaultSettingParameters { get; set; }
         DbSet<DefaultSettingParameterValue> DefaultSettingParameterValues { get; set; }
         DbSet<DeploymentLog> DeploymentLogs { get; set; }

         DbSet<UserEnvironment> UserEnvironments { get; set; }

         DbSet<UserEnvironmentRight> UserEnvironmentRights { get; set; }

           DbSet<AuditLog> AuditLog { get; set; }
           DbSet<AuditLogDetail> LogDetails { get; set; }

          int SaveChanges();

         int SaveChanges(string username);


         Database GetDatabase();


    }
}
